<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
  <title>Admin: <%= controller.action_name %></title>
  <%= stylesheet_link_tag 'scaffold', "aditi", "admin", :media => "all" %>
  <%= javascript_include_tag :defaults  %>
  <%= active_scaffold_includes %>
  
</head>
<body>
<div id="banner">
  <%= @page_titile || "Administration" %>
</div>

<div id="columns">
	<div id="side">
		<% if session[:user_id] && session[:admin_user] == "aditi-admin" -%>
			<%= link_to("List Users", :controller => "login", :action => "list_users") %> <br/>
			<%= link_to("Add User", :controller => "login", :action => "add_user") %> <br/>
			<%= link_to("List Companies", :controller => "admin_company", :action => "list") %> <br/>
			<%= link_to("List Profiles", :controller => "profiles", :action => "list") %> <br/>
			<%= link_to("List Languages", :controller => "admin_lang", :action => "list") %> <br/>
			<%= link_to("List Attribute Type", :controller => "admin_attribute_type", :action => "list") %> <br/>
			<%= link_to("Logout", :controller => "login", :action => "logout") %> <br/>
		<% end -%>
	</div>
	<div id="main">
		<% if flash[:notice] -%>
			<div id="notice">
				<%= flash[:notice] %>
			</div>
		<% end -%>
		<!--% @content_for_layout %-->
		
		<%= yield  %>
		
	</div>
</div>
</body>
</html>
